package com.zeei.ems.base.util;

import org.springframework.core.env.Environment;

/**
 * spring 配置 文件获取工具类
 */
public class SpringPropertiesUtils {

    /**
     * 获取指定名名称的配置属性
     * @param prop 属性名
     * @return
     */
    public static String getProperty(String prop){
        Environment environment = SpringContextHolder.getApplicationContext().getEnvironment();
        return environment.getProperty(prop);
    }

}
